<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich">
<head>
<title>Not present in rendered output</title>
</head>
<body>
<composite:interface>
	<composite:attribute name="editMode" default="false"/>
	<composite:attribute name="value" required="true"/>
	<composite:attribute name="required" default="false"/>
	<composite:valueHolder name="Input"/>
	<composite:attribute name="label"/>
	<composite:attribute name="onkeypressScript"/>
	<composite:attribute name="size"/>
	<composite:attribute name="inputTextClass"/>
	<composite:attribute name="inputTextStyle"/>
	<composite:attribute name="containerStyle" default=""/>
	<composite:attribute name="maxLength" default="1024"/>
	<composite:editableValueHolder name="text" targets="Input" />
	
</composite:interface>
<composite:implementation>
	<div id="#{cc.clientId}">
		<h:panelGrid columns="2" cellpadding="0" cellspacing="0" style="#{cc.attrs.containerStyle}">
			<h:outputText value="#{cc.attrs.value}" rendered="#{!cc.attrs.editMode}"/>
			<h:inputText id="Input" value="#{cc.attrs.value}" styleClass="#{cc.attrs.inputTextClass} #{((cc.attrs.required == 'true') ? 'cajaRequerida' : '') }" size="#{cc.attrs.size}" style="#{cc.attrs.inputTextStyle}"
				onkeypress="#{cc.attrs.onkeypressScript}" 
				rendered="#{cc.attrs.editMode}" required="#{cc.attrs.required}" requiredMessage="El campo #{cc.attrs.label} es obligatorio" maxlength="#{cc.attrs.maxLength}">
				<composite:insertChildren />
			</h:inputText>
			<rich:message for="Input" ajaxRendered="true" styleClass="rmsg-parent-cmp" >
				<rich:tooltip value="#{msg.etiqueta_campo_obligatorio}" verticalOffset="2"></rich:tooltip>
			</rich:message>
			
		</h:panelGrid>
	</div>
</composite:implementation>
</body>
</html>